pub mod chain;
pub mod block;
pub mod coin;


#[test]
fn test() {
    use coin::Coin;
    use block::Block;
    use async_std::task;

    let mut chain_wrap = task::block_on(chain::CHAIN.lock());
    let chain = chain_wrap.chain_mut();
    let test1 = Block::new(chain.get(0).unwrap(),
                           0,
                           Coin::from("god", "", "0", "".to_string()));
    chain.push(test1);
    println!("chain : {:?}", chain);
}
